package cn.com.ahao.gateway.util;

import java.util.Date;
import java.util.UUID;

public class TraceIdUtil {

    public static String shortUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String shortUUIDWithTime() {
        return DateUtil.format(new Date(), DateUtil.yyyyMMddHHmmss) + "-" + shortUUID();
    }

}
